/*
 ***************************************************************************
 * MediaTeK Inc.
 * 4F, No. 2 Technology	5th	Rd.
 * Science-based Industrial	Park
 * Hsin-chu, Taiwan, R.O.C.
 *
 * (c) Copyright 2002-2012, MTK.
 *
 * All rights reserved.	MediaTeK's source	code is	an unpublished work	and	the
 * use of a	copyright notice does not imply	otherwise. This	source code
 * contains	confidential trade secret material of MediaTeK Tech. Any attemp
 * or participation	in deciphering,	decoding, reverse engineering or in	any
 * way altering	the	source code	is stricitly prohibited, unless	the	prior
 * written consent of MediaTeK, Inc. is obtained.
 ***************************************************************************

	Module Name:
	omci_utily.c

	Abstract:

	Revision History:
	Who			When			What
	--------	----------		----------------------------------------------
	Name		Date			Modification logs
	Andy.Yi		2012/7/3	Create
*/

#ifndef _OMCI_UTILY_H 
#define _OMCI_UTILY_H
uint16_t get16(uint8_t *cp);/* get16 */

uint32_t get32 (uint8_t *cp) ;/* get32 */

uint64_t get64 (uint8_t *cp) ;/* get64 */

uint8_t *put32(uint8_t *cp, uint32_t x);/* put32 */

uint8_t *put16(	uint8_t *cp, uint16_t x);/* put16 */

uint8_t *put64(uint8_t *cp, uint64_t x);
 /* put64 */

uint32_t aton(char  *s);

/**debug level ***/
#define OMCI_DEBUG_LEVEL_NO_MSG		0
#define OMCI_DEBUG_LEVEL_ERROR		1
#define OMCI_DEBUG_LEVEL_WARN		2
#define OMCI_DEBUG_LEVEL_TRACE		3
#define OMCI_DEBUG_LEVEL_DEBUG		4

void omcidbgPrintf(uint8_t debugLevel, char *fmt,...);
void omcidbgBytePrintf(char *fmt,...);
void omciScreenPrintf(char *fmt,...);

#endif

